/*
 * FlavorUtils.java
 * business
 *
 * Created by ChenTao on 2017/2/24.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.utils;

import com.yidiandao.business.BuildConfig;
import com.yidiandao.business.constant.Flavor;

/**
 * 渠道工具
 *
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/2/24 17:26
 */
public class FlavorUtils {

    /** 线上渠道 */
    public static boolean isAlpha() {

        if (Flavor.DEV.equals(getCurrentFlavor()) || Flavor.TEST.equals(getCurrentFlavor())) {
            return false;
        }

        return true;
    }

    /** 获取当前读渠道 */
    public static String getCurrentFlavor() {
        return BuildConfig.FLAVOR;
    }
}
